public class Series2 {
	public static void main(String args[]) {
		int i;
		int[] s = new int[20];

		s[0] = 0;
		s[1] = 1;
		s[2] = 1;
		for (i = 3; i <= 19; i++) {
			s[i] = s[i - 1] + s[i - 2] + s[i - 3];
		}

		// System.out.println("test: i=" +i+"  s[i] =" +s[i]);}
		for (i = 0; i <= 19; i++) {
			System.out.println("i = " + i + " s = " + s[i]);
		}
	}
}